<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<table class="stableborder" cellpadding="2" cellspacing="2" style="padding: 2px; width: 100%">
	<tr>
		<td class="labelproperty_title">属性名称</td>
		<td class="labelpropertydesc_title">属性描述</td>
	</tr>
	<tr>
		<td class="labelproperty">valueField</td>
		<td class="labelpropertydesc">后台json传数据时对应的value字段属性名称,默认是id</td>
	</tr>
	<tr>
		<td class="labelproperty">textField</td>
		<td class="labelpropertydesc">后台json传数据时对应的text字段属性名称,默认是text</td>
	</tr>
	<tr>
		<td class="labelproperty">method</td>
		<td class="labelpropertydesc">post/get</td>
	</tr>
	<tr>
		<td class="labelproperty">mode</td>
		<td class="labelpropertydesc">local/remote,local是只加载一次数据源到本地,remote是根据输入的值和给定的url到后台查询过滤</td>
	</tr>
	<tr>
		<td class="labelproperty">url</td>
		<td class="labelpropertydesc">通过url获取下拉数据源</td>
	</tr>
	<tr>
		<td class="labelproperty">data</td>
		<td class="labelpropertydesc">固定的下拉数据源</td>
	</tr>
	<tr>
		<td class="labelproperty">keyHandler</td>
		<td class="labelpropertydesc">键盘事件</td>
	</tr>
	<tr>
		<td class="labelproperty">formatter</td>
		<td class="labelpropertydesc">下拉数据格式化data-defs="
				method:'get',
				url: '${rc.contextPath}/assets/ui/jww/demo/testdata/combobox_data1.json',
				border:true,
				valueField: 'id',
				textField: 'text',
				panelWidth: 350,
				panelHeight: 'auto',
				formatter: formatItem
			"</td>
	</tr>
	<tr>
		<td class="labelproperty">panelWidth</td>
		<td class="labelpropertydesc">下拉框弹出宽度,默认自适应</td>
	</tr>
	<tr>
		<td class="labelproperty">panelHeight</td>
		<td class="labelpropertydesc">下拉框弹出高度</td>
	</tr>
	<tr>
		<td class="labelproperty">onBeforeLoad</td>
		<td class="labelpropertydesc">数据加载前函数</td>
	</tr>
	<tr>
		<td class="labelproperty">onLoadSuccess</td>
		<td class="labelpropertydesc">加载成功回调</td>
	</tr>
	<tr>
		<td class="labelproperty">onLoadError</td>
		<td class="labelpropertydesc">加载失败回调</td>
	</tr>
	<tr>
		<td class="labelproperty">onSelect</td>
		<td class="labelpropertydesc">选择事件,data-defs="onSelect：functionName"</td>
	</tr>
	<tr>
		<td class="labelproperty">onUnselect</td>
		<td class="labelpropertydesc">取消选择事件,data-defs="onUnselect：functionName"</td>
	</tr>
</table>
<table class="stableborder" cellpadding="2" cellspacing="2" style="padding: 2px; width: 100%">
	<tr>
		<td class="labelproperty_title">方法名称</td>
		<td class="labelpropertydesc_title">方法描述</td>
	</tr>
	<tr>
		<td class="labelproperty">getData</td>
		<td class="labelpropertydesc">获取下拉数据源,$('#comboboxId').combobox('getData')</td>
	</tr>
	<tr>
		<td class="labelproperty">setValues</td>
		<td class="labelpropertydesc">设置选中的值,$('#comboboxId').combobox('setValues','1,2')</td>
	</tr>
	<tr>
		<td class="labelproperty">setValue</td>
		<td class="labelpropertydesc">设置选中的值,$('#comboboxId').combobox('setValue','1')</td>
	</tr>
	<tr>
		<td class="labelproperty">clear</td>
		<td class="labelpropertydesc">清空选中的值</td>
	</tr>
	<tr>
		<td class="labelproperty">reset</td>
		<td class="labelpropertydesc">重置</td>
	</tr>
	<tr>
		<td class="labelproperty">loadData</td>
		<td class="labelpropertydesc">加载下拉框的值;$('#comboboxId').combobox('loadData', [{
	"id":1,
	"text":"下拉框名称1",
	"desc":"详细描述详细描述详细描述详细描述详细描述详细描述详细描述"
},{
	"id":2,
	"text":"下拉框名称2",
	"desc":"详细描述详细描述详细描述详细描述详细描述详细描述详细描述"
}]),</td>
	</tr>
	<tr>
		<td class="labelproperty">reload</td>
		<td class="labelpropertydesc">通过url重新加载;$('#comboboxId').combobox('reload', '/xxx.json')</td>
	</tr>
	<tr>
		<td class="labelproperty">select</td>
		<td class="labelpropertydesc">设置选中;$('#comboboxId').combobox('select','1')</td>
	</tr>
	<tr>
		<td class="labelproperty">unselect</td>
		<td class="labelpropertydesc">不选;$('#comboboxId').combobox('unselect','1')</td>
	</tr>
</table>